import http from '../utils/http'

/**
 * @description 授权登录
 * @param {*} code 临时登录凭证code
 * @returns Promise
 */
export const reqLogin = (code) => {
  return http.get(`/weixin/wxLogin/${code}`)
}
/**
 * @description 获取用户信息
 * @param {*} token 
 */
export const reqUserInfo=()=>{
  return http.get('/weixin/getuserInfo')
}
